;Assembler header file for WimpReadSysInfo
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:11:43 2005
;Jonathan Coxhead, jonathan@doves.demon.co.uk, 23 May 1995

        [       :LNOT: :DEF: WimpReadSysInfo_Hdr
        GBLS    WimpReadSysInfo_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

        [       :LNOT: :DEF: Get_Wimp
        GBLS    Get_Wimp
        ]
        [       :LNOT: :DEF: Wimp_Hdr
Get_Wimp                        SETS    "GET oslib/Wimp.Hdr"
        |
Get_Wimp                        SETS    ""
        ]
        $Get_Wimp

        [       :LNOT: :DEF: Get_Font
        GBLS    Get_Font
        ]
        [       :LNOT: :DEF: Font_Hdr
Get_Font                        SETS    "GET oslib/Font.Hdr"
        |
Get_Font                        SETS    ""
        ]
        $Get_Font

        [       :LNOT: :DEF: Get_OSSpriteOp
        GBLS    Get_OSSpriteOp
        ]
        [       :LNOT: :DEF: OSSpriteOp_Hdr
Get_OSSpriteOp                  SETS    "GET oslib/OSSpriteOp.Hdr"
        |
Get_OSSpriteOp                  SETS    ""
        ]
        $Get_OSSpriteOp

;Symbols for constants
WimpReadSysInfo_StateCommands   *       &0
WimpReadSysInfo_StateDesktop    *       &1
WimpReadSysInfo_DirLeftToRight  *       &0
WimpReadSysInfo_DirRightToLeft  *       &1

;Symbols for structure offsets and sizes
                                ^       0
                                #       Int
WimpReadSysInfo_State           *       @

                                ^       0
                                #       Int
WimpReadSysInfo_Direction       *       @


;Symbols for SWI's and SWI reason codes
XWimp_ReadSysInfo               *       &600F2
Wimp_ReadSysInfo                *       &400F2

WimpReadSysInfo_TaskCount       *       &0
   ;Entry
   ;  R0 = &0
   ;Exit
   ;  R0 = task_count (Int)

WimpReadSysInfo_WimpMode        *       &1
   ;Entry
   ;  R0 = &1
   ;Exit
   ;  R0 = mode (OS_Mode)

WimpReadSysInfo_SpriteSuffix    *       &2
   ;Entry
   ;  R0 = &2
   ;Exit
   ;  R0 -> suffix (String)

WimpReadSysInfo_DesktopState    *       &3
   ;Entry
   ;  R0 = &3
   ;Exit
   ;  R0 = state (WimpReadSysInfo_State)

WimpReadSysInfo_WriteDir        *       &4
   ;Entry
   ;  R0 = &4
   ;Exit
   ;  R0 = write_dir (WimpReadSysInfo_Direction)

WimpReadSysInfo_Task            *       &5
   ;Entry
   ;  R0 = &5
   ;Exit
   ;  R0 = task (Wimp_T)
   ;  R1 = version (Wimp_VersionNo)

WimpReadSysInfo_Version         *       &7
   ;Entry
   ;  R0 = &7
   ;Exit
   ;  R0 = version (Wimp_VersionNo)

WimpReadSysInfo_Font            *       &8
   ;Entry
   ;  R0 = &8
   ;Exit
   ;  R0 = font (Font_F)
   ;  R1 = symbol_font (Font_F)

WimpReadSysInfo_ToolSprites     *       &9
   ;Entry
   ;  R0 = &9
   ;Exit
   ;  R0 -> toolsprites (OSSpriteOp_Area)

WimpReadSysInfo_ApplicationLimit *       &B
   ;Entry
   ;  R0 = &B
   ;Exit
   ;  R0 = size_limit (Int)

WimpReadSysInfo_SpritePools     *       &10
   ;Entry
   ;  R0 = &10
   ;Exit
   ;  R0 -> low_priority (OSSpriteOp_Area)
   ;  R1 -> high_priority (OSSpriteOp_Area)

WimpReadSysInfo_AutoScrollPauseDelay *       &11
   ;Entry
   ;  R0 = &11
   ;Exit
   ;  R0 = delay (Int)

WimpReadSysInfo_SpritePoolsExtended *       &13
   ;Entry
   ;  R0 = &13
   ;Exit
   ;  R0 -> priority (OSSpriteOp_Area)
   ;  R1 -> high_priority (OSSpriteOp_Area)
   ;  R2 -> low_priority (OSSpriteOp_Area)

WimpReadSysInfo_SpecialHighlightingColours *       &14
   ;Entry
   ;  R0 = &14
   ;Exit
   ;  R0 = bg (Wimp_Colour)
   ;  R1 = fg (Wimp_Colour)

WimpReadSysInfo_TextSelectionColours *       &15
   ;Entry
   ;  R0 = &15
   ;Exit
   ;  R0 = bg (Wimp_Colour)
   ;  R1 = fg (Wimp_Colour)

        ]
        END
